pub mod my_app {
    use crate::hosting::book::books;
    use crate::hosting::book::books::{Book, BookFormat};
    use dtt;
    use std::{fs, io};

    pub fn app_name() {
        let t1 = Book {
            format: BookFormat::PaperBack,
            isbn: 100,
        };
        let t2 = Book {
            format: BookFormat::HardBack,
            isbn: 200,
        };
        let q = t2 < t1;
        print!("book1  ==  book2 ={}", q);
    }

    pub fn app_test() {
        println!("app name");
        let dt = dtt::DateTime::new();
        let cur_time = dt.now;
        println!("{}", cur_time);
        let f = fs::create_dir_all("d:/fs/fs/fs");
        match f {
            Ok(v) => {
                println!(">>>>>ok {:?}", v);
            }
            Err(t) => {
                println!("error all error={} ", t.to_string());
            }
        }
        fix_question();
    }

    pub fn fix_question() -> io::Result<()> {
        let f = fs::create_dir_all("d:/fs/fs2")?;
        return Ok(f);
    }
}
